<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</meta>
<title>F.highlight</title>
<link type="text/css" rel="stylesheet" href="../css/admin.css" />
<link type="text/css" rel="stylesheet" href="../css/item_show.css" />
<script type="text/javascript" src="../../1st.js"></script>
<script type="text/javascript" src="../../1st.highlight.js"></script>
</head>
<body id="split">
<div id="content">
	<div rel="F.param">
		<h2><span>返回值:</span>F.highlight</h2>
					<h3>概述 : 代码高亮类</h3>
									<h3>语法1：F.highlight(codetxt, [lang], [skinName])</h3>
						<table class="args">
				<!--caption>参数列表：(3)</caption-->
				<tr><th>参数名称</th><th>类型</th><th>描述</th></tr>
									<tr><td><strong>codetxt</strong></td><td>ID,Node,fdom</td><td>代码文本</td></tr>
									<tr><td><strong>lang</strong><em> (可选)</em></td><td>String</td><td>编程语言,默认为html</td></tr>
									<tr><td><strong>skinName</strong><em> (可选)</em></td><td>String</td><td>皮肤名称,默认为dreamweaver</td></tr>
								<tr><td colspan="3">&nbsp;</td></tr>
				<tr><td>返回值</td><td>String</td><td>返回加亮后的代码文本</td></tr>
			</table>
				<div class="example">
			<h3>示例 : </h3>
							<h5 xmlns="">CSS代码:</h5>
				<pre xmlns=""><code id="cssbox"></code></pre>
						
							<h5 xmlns="">HTML代码:</h5>
				<pre xmlns=""><code id="htmlbox"></code></pre>
											</div>
		<div style="text-align:right">
			
					
				<button onclick="window.open('../codepages/77.html');">运行代码</button>
						
		</div><br/>	
		<div>
			<h3>同类参考 :</h3>
			<div>
							<span><a href='129.html'>F.accordion</a></span>&#12288;|&#12288;							<span><a href='76.html'>F.grid</a></span>&#12288;|&#12288;							<span><a href='5.html'>F.layout</a></span>&#12288;|&#12288;							<span><a href='78.html'>F.calendar</a></span>&#12288;|&#12288;							<span><a href='31.html'>F.player</a></span>&#12288;|&#12288;							<span><a href='79.html'>F.lyric</a></span>&#12288;|&#12288;							<span><a href='63.html'>F.maths</a></span>&#12288;|&#12288;							<span><a href='178.html'>F.algorithms</a></span>&#12288;|&#12288;							<span><a href='81.html'>F.cchar</a></span>						</div>
		</div>
	</div>
</div><br />

<textarea id="css" style="display:none;">.dbox{
	font-family:Courier New;
	font-size:12px;
	border:1px solid #8a8a8a;
	background-color:#eeeeee;
	margin-top:15px;
	padding:6px;
}</textarea>
<textarea id="html" style="display:none;"><textArea id="code" rows="12" cols="80">
//这是一个测试
function SyntaxText(){
	var a = /^[u4e00-u9fa5]+$/;
	var b = 4 / 5, c = 8/10;
	var d = new Array(100);
	var e = 5/6;  //this is a notes
	//求1-100之间的质数
	for (var i=0;i<100;i++){/*
		if (i%2){
			a += i;	
		}*/
	}
	alert("100du");
	window.alert(a[0]);
}
</textArea>

<br/>
<button onclick="F('display').highlight(F.node('code').value,'js');">go</button>

<div id="display" class="dbox"></div></textarea>
<textarea id="js" style="display:none;"></textarea>
<textarea id="result" style="display:none;"></textarea>


<script type="text/javascript">
var css = F('css').val();
var html = F('html').val();		
var js = F('js').val();
var result = F('result').val();
css && F('cssbox').highlight(css, "css");
html && F('htmlbox').highlight(html, "html");
js && F('jsbox').highlight(js, "js");
result && F('resultbox').highlight(result,"js");
</script>

</body>
</html>